<template>
    <h3>Parent组件</h3>
    <p>Parent组件读到的全局数据：{{ globalData }}</p>
    <Child />
</template>

<script>
import Child from './Child.vue';
export default {
    data() {
        return {
        }
    },
    components: {
        Child,
    },
    inject: ['globalData']
}
</script>
